#ifndef PLANE_H
#define PLANE_H
#include<QPixmap>
#include<QRect>
#include"bullet.h"
#include"config.h"
class plane
{
public:
    plane();

    //发射子弹
    void shoot1();
    void shoot2();
    void shoot3();
    void shoot4();
    //飞机位置
    void setposition(int x,int y);

    //飞机资源
    QPixmap m_plane;
    QPixmap m_plane2;
    //飞机坐标
    int m_x;
    int m_y;

    //飞机边框
    QRect m_Rect;

    //子弹
    bullet m_bullet[bullet_num];

    //间隔
    int m_recorder1;
    int m_recorder2;
    //等级
    int level;

    //选择哪架飞机false为第一架
    bool whichplane;

};

#endif // PLANE_H
